package sealedGenerator.card;

import java.util.ArrayList;
import java.util.List;

public enum Color {
	WHITE, BLUE, BLACK, RED, GREEN;
	
	public static ArrayList<Color> colorFromCost(String manaCost) {
		ArrayList<Color> colors = new ArrayList<Color>();
		
		if(manaCost.contains("W") || manaCost.contains("%!"))
			colors.add(WHITE);
		
		if(manaCost.contains("B") || manaCost.contains("%$"))
			colors.add(BLACK);
		
		if(manaCost.contains("G") || manaCost.contains("%@"))
			colors.add(GREEN);
		
		if(manaCost.contains("U") || manaCost.contains("%`"))
			colors.add(BLUE);
		
		if(manaCost.contains("R") || manaCost.contains("%^"))
			colors.add(RED);		
		
		return colors;
	}
}
